<html lang="en" xmlns:th="http://www.thymeleaf.org"><head>
    <meta charset="UTF-8" />
    <title>主页</title>
    <link th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/asset/css/login.css}" rel="stylesheet">
</head>
<style>

</style>
<body>
<div class="container">
    <div class="row">
        <form action="/user" method="post" class="col-md-4 col-md-offset-4 login-form">
            <h1 class="text-center">用户登录</h1>
            <div class="form-group">
                <label for="userName">用户名</label>
                <input type="text"  name="userName" class="form-control" id="userName"placeholder="Enter " />
                <small class="form-text " style="color: red;" th:if="${not #strings.isEmpty(msg)}" th:text="${msg}"></small>
            </div>
            <div class="form-group">
                <label for="passWord">密码</label>
                <input type="password" name="passWord" class="form-control" id="passWord" placeholder="Password"  />
            </div>

            <button type="submit" class="btn btn-primary col-md-12">登录</button>
        </form>

    </div>
</div>
</body>

</html>